package com.bo.baby2.dao;

import com.bo.baby2.entity.BorrowQuery;
import com.bo.baby2.entity.TBorrow;

import java.util.List;


/**
* @program: baby2_p2p
*
* @description: ${description}
*
* @author:波
*
* @create: 2020-07-14 21:18
**/


public interface TBorrowMapper {
    int deleteByPrimaryKey(String id);

    int insert(TBorrow record);

    int insertSelective(TBorrow record);

    TBorrow selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TBorrow record);

    int updateByPrimaryKey(TBorrow record);

    /**
     * 借款信息查询
     *
     */
    List<TBorrow> getBorrow(BorrowQuery borrowQuery);

    /**
     * 查询总数量
     */
    int getCount(BorrowQuery borrowQuery);

    List<TBorrow> getBorrows();
}
